The UFError enumerated type provides several errors that are common to many types of functions. If appropriate, have your UFL function return one of these predefined types. If no error occurs, you can return UFNoError.
If your function can cause an error that is not predefined, however, you can establish a user
A user
char *ErrorTable[] =
{
"My User-d efined Error"
};
This error string is assigned an error index by Crystal Reports. The first error is 0, the second is 1, etc. If an error occurs in your function, you assign the appropriate index value to the ReturnValue.UFReturnUserError member of the parameter block. For example:
ParamBlock->ReturnValue.UFReturnUserError = 0;
Once you specify a user
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |